#include <stdio.h>
#include <math.h>

#define PI 3.141592654

int main() {
	double y1 = 0.0;
	double y2 = 0.0;
	y1 = sqrt((1 - cos(PI / 3)) / 2.0);
	y2 = sin(PI / 4) * sin(PI / 4) + sin(PI / 4) * cos(PI / 4) - cos(PI / 4) * cos(PI / 4);
	printf("%lf\n%lf", y1, y2);

	return 0;
}
